package cn.com.thinvent.dispatch.service.biz.impl;

import cn.com.thinvent.dispatch.dao.DailyExpensesMapper;
import cn.com.thinvent.dispatch.entity.DailyExpenses;
import cn.com.thinvent.dispatch.service.biz.BaseBiz;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;

@Component
public class BaseBizImpl implements BaseBiz {

    @Resource
    private DailyExpensesMapper dailyExpensesMapper;

    @Override
    public void testMapper() {
        System.out.println(dailyExpensesMapper);
        DailyExpenses dailyExpenses = new DailyExpenses();
        dailyExpenses.setId("10086");
        dailyExpenses.setExpenseItem("地铁");
        dailyExpenses.setCreatedAt(new Date());
        dailyExpenses.setUpdatedAt(new Date());
        dailyExpensesMapper.insertDailyExpenses(dailyExpenses);
    }
}
